package com.gupaoedu.task.factory.abstractfactory;

/**
 * @author djl
 * @Title: AbstractFactoryTest
 * @Description: TODO
 * @date 2019/3/28
 */
public class AbstractFactoryTest {
    public static void main(String[] args) {
        HaierFactory  factory=new HaierFactory();
        factory.createRefrigerator().product();
        factory.createTV().tv();
        HisenseFactory  factory2=new HisenseFactory();
        factory2.createRefrigerator().product();
        factory2.createTV().tv();

    }
}
